<?php
/**
 * +----------------------------------------------------------------------
 * | Author: 罗极
 * +----------------------------------------------------------------------
 * | Description: EventInstance.php
 * +----------------------------------------------------------------------
 * | User: Administrator Date: 8/26/ 0026 Time: 9:59
 * +----------------------------------------------------------------------
 */

namespace Framework\Event;

use Framework\Event\Abstracts\EventBase;

class EventInstance extends EventBase
{
    public static $_self;

    protected function __construct(){}
    protected function __clone(){}

    public static function getInstance()
    {
        if(!is_object(self::$_self)) {
            self::$_self = new self();
        }

        return self::$_self;
    }
}